package top.eggcode.component.query.anno;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Title:
 * Description: TODO
 * Date: 2021/8/14 17:03
 *
 * @author JiaQi Ding
 * @version 1.0
 */
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface UnionAttribute {

    /**
     * 外键
     */
    String relation() default "";

    /**
     * 关联属性
     */
    String name() default "";
}
